<template>
  <div class="container">
    <div class="headinput">
      用户名:<el-input
      clearable
        v-model="search"
        placeholder="请输入用户名"
        style="width: 200px"
      ></el-input>

      警员编号:<el-input
      clearable
        v-model="searchtwo"
        placeholder="请输入人员编号"
        style="width: 200px"
      ></el-input>
    </div>
    <div>
      <el-button type="primary" @click="searchfun">搜索</el-button>
      <el-button type="primary" @click="openDialogfun">添加</el-button>
    </div>
    <div></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      search: "",
      searchtwo:"",
    };
  },
  methods: {
    openDialogfun() {
      console.log(111);
      this.$emit("openDialog");
    },
     searchfun(){
       
    this.$emit("searchpage",this.search,this.searchtwo);
    
   
  

    },
     }
  
};
</script>

<style lang="less" scoped>
.container {
  width: 100%;
  height: 75px;
  background: #fff;
  // padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .headinput {
    margin-left: 35px;
    .el-button--small {
      width: 113px;
      margin-right: 150px;
    }
  }
  .el-input {
    margin-right: 50px;
    margin-left: 5px;
  }
  .el-button {
    width: 100px;
    margin-right: 160px;
  }
}
</style>